const { BrowserWindow, app } = require("electron");
app.commandLine.appendSwitch("disable-features", "OutOfBlinkCors");

function createWin() {
  const win = new BrowserWindow({
    width: 1000,
    height: 800,
    frame: false,
    webPreferences: {
      webSecurity: false,
      nodeIntegration: true,
      enableRemoteModule: true,
    },
  });

  win.webContents.loadURL(
    "https://zhangwenyan.gitee.io/static/vdplayer/index.html?r=" + new Date()
  );
}

app.on("ready", createWin);
